package com.ccrfid.rmc6.service.device;

import com.ccrfid.rmc6.appconfig.exception.pojo.AppException;
import com.ccrfid.rmc6.entity.device.CardreaderEntity;
import com.ccrfid.rmc6.repository.search.SearchCriteria;
import com.ccrfid.rmc6.ws.c5.cardreader.pojo.UploadCardRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface CardreaderService {
    //
    Page<CardreaderEntity> getCardreaderInfoPage(SearchCriteria criteria, Pageable pageable);

    CardreaderEntity getCardreaderById(Long readerId);

    //
    CardreaderEntity createCardreaderEntity(CardreaderEntity entity) throws AppException;

    //
    CardreaderEntity updateCardreaderEntity(Long readerId, CardreaderEntity entity) throws AppException;

    //
    int deleteCardreadersInfo(List<Long> readerIdList);

    //
    void readCard(UploadCardRequest request);
}
